package io.github.yotta.logger.message.support;

import io.github.yotta.logger.api.iface.LogApi;
import io.github.yotta.logger.api.request.LogCreateRequest;

/**
 * @author yotta
 * @date 2023/3/27 8:27
 * rpc feign调用
 */
public class LoggerManagerRemoteLogSaveProvider extends AbstractManagerLogSaveProvider {

    private final LogApi logApi;

    public LoggerManagerRemoteLogSaveProvider(LogApi logApi) {
        this.logApi = logApi;
    }

    @Override
    protected void save(LogCreateRequest logCreateRequest) {
        logApi.save(logCreateRequest);
    }

}
